package items;

import java.util.ArrayList;

/*
 * Defines most commonly used runes
 */
public enum Runes {
	AirRu ("Air Rune", 556),
	WatRu ("Water Rune", 555),
	EarRu ("Earth Rune", 557),
	FirRu ("Fire Rune", 554),
	CosRu ("Cosmic Rune", 564),
	AstRu ("Astral Rune", 9075),
	NatRu ("Nature Rune", 561),
	LawRu ("Law Rune", 563),
	DeaRu ("Death Rune", 560),
	BloRu ("Blood Rune", 565),
	PureE ("Pure Essence", 7936),
	RuneE ("Rune Essence", 1436);
	
	public static final String group = "runes";
	private String itemName;
	private int itemNumber;

	public int getItemNumber() {
		return itemNumber;
	}

	public void setItemNumber(int itemNumber) {
		this.itemNumber = itemNumber;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	Runes(String itemName, int itemNumber) {
		this.setItemName(itemName);
		this.setItemNumber(itemNumber);
	}

	@Override
	public String toString() {
		Number string = getItemNumber();
		return string.toString();
	}
	
	public static boolean itemCategory(String category) {
		return category.equalsIgnoreCase("runes") ? true : false;
	}
	
	public static ArrayList<String> itemNameList() {
		ArrayList<String> itemList = new ArrayList<String>();
		for(Runes items : Runes.values()) {
			itemList.add(items.getItemName());
		}
		return itemList;
	}
	
	public static ArrayList<String> itemNumberList() {
		ArrayList<String> itemNumberList = new ArrayList<String>();
		for(Runes items : Runes.values()) {
			itemNumberList.add(items.toString());
		}
		return itemNumberList;
	}
}
